/**
 * Created by IntelliJ IDEA.
 * User: maticm
 * Date: Oct 10, 2003
 * Time: 8:39:29 PM
 * To change this template use Options | File Templates.
 */

package com.generalynx.common.web.navigation;

import com.generalynx.common.web.module.Module;
import com.generalynx.common.constants.WebConst;

public class ImageMenuItemRenderer extends BasicMenuItemRenderer {

    protected String getItemHtml(Module node, boolean on) {
        return getImg(node, on);
    }

    protected String getImg(Module node, boolean on) {
        return
                "<img class=\"menu_" + node.getName() + "\" alt=\"" + super.getItemHtml(node, on) +
                "\" src=\"/" + WebConst.APP_NAME + "/images/" +
                getImgRelSrc(node, on)
                + "\" border=\"0\" />"
                ;
    }

    protected String getImgRelSrc(Module node, boolean on) {
        return "";
    }
}
